package com.netease.pris.persist;

import com.db4o.Db4oEmbedded;
import com.db4o.ObjectContainer;

/**
 * 
 * @author Administrator
 * 
 */
public class BasePersist {

	public static final String DB4OFILENAME = "MYFILE";
	
	private static ObjectContainer db;

	public static ObjectContainer getContainer() {
		if(db == null){
			init();
		}
		return db;
	}

	public static void init() {
		db = Db4oEmbedded.openFile(Db4oEmbedded.newConfiguration(), DB4OFILENAME);
	}
}
